<%-- 
    Document   : commande
    Created on : 27 avr. 2010, 23:48:38
    Author     : SaLaH
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
        <script type="text/javascript" src="cart.js"></script>
        <title>CinéShop</title>
    </head>

    <body>
    <div class="PageBackgroundGradient"></div>
    <div class="Main">
        <div class="Sheet">
            <div class="Sheet-tl"></div>
            <div class="Sheet-tr"><div></div></div>
            <div class="Sheet-bl"><div></div></div>
            <div class="Sheet-br"><div></div></div>
            <div class="Sheet-tc"><div></div></div>
            <div class="Sheet-bc"><div></div></div>
            <div class="Sheet-cl"><div></div></div>
            <div class="Sheet-cr"><div></div></div>
            <div class="Sheet-cc"></div>
            <div class="Sheet-body">
              <%@include file="header.jsp" %>
                <div class="contentLayout">
              <%@include file="menu.jsp" %>
                    <div class="content">
                         <div class="cart"> <a href="ServletPanier"><img src="images/Shopping_Cart.png" alt="" title="Panier"></a></div>
                <div class="order">
                    <h2>Récapitulatif de Votre Commande :</h2>
                   
                    <div class="confirm">
                        <form action="ServletCommande">
                            <div>
                                <table style=" width: 50%; border-collapse:collapse; border-width:1px; border-style:solid; border-color:black;" border="0" cellspacing="1" cellpadding="0">
                                    <thead>
                                        <tr>
                                            <td class="table-entete">Produit</td>
                                            <td class="table-entete">Prix<br> Euro</td>
                                            <td class="table-entete">Quantité</td>
                                            <td class="table-entete">Total Euro</td>
                                        </tr>
                                    </thead>
                               
                                        <c:forEach var="lineItem" items="${lignesCommandes}">
                                            <tr>
                                                <td class = "table-ligne1">${lineItem.film.titre}</td>
                                                <td class = "table-ligne1">${lineItem.film.prix}</td>
                                                <td class = "table-ligne1">
                                                    ${lineItem.quantite}
                                                </td>
                                                <td class = "table-ligne1">${lineItem.total}</td>
                                            </tr>
                                        </c:forEach>
                             
                                  
                                        <tr>
                                            <td class = "table-ligne1" ><strong>Total <br/>  Euro</strong></td>
                                            <td class = "table-ligne1" colspan="3">${total}</td>
                                        </tr>
                                        <tr>
                                            <td><input id="confirmB" type="submit" value="Confirmer"/></td>
                                        </tr>
                                    
                                </table>
                            </div>
                        </form>
                    </div>
    
                </div>
                               
                    </div>
                </div>

            </div>
        </div>

    </div>
    </<body>
</html
